<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('产品列表')"/>
</head>
<body>

<div>
    <h1>选择加入收藏夹</h1>
    <form class="form-horizontal m" id="form-view-check">
    <span th:each="product : ${productVos}">
        <img th:src="${product.url}">
        <input type="checkbox" name="productId" th:value="${product.productId}">
    </span>
    </form>
</div>

<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "hcy/product/productView";
    function submitHandler() {
            $.operate.save(prefix + "/check", $('#form-view-check').serialize());
    }
</script>
</body>
</html>